package cn.bonoon.controllers.fmm;

import java.util.Date;

import cn.bonoon.kernel.annotations.condition.ConditionField;
import cn.bonoon.kernel.annotations.condition.ConditionOpt;
import cn.bonoon.kernel.query.PageCondition;
import cn.bonoon.kernel.util.Opt;
import cn.bonoon.kernel.web.annotations.condition.ConditionContent;

public class AccountCondition extends PageCondition implements AccountDefine{
	/**
	 * 
	 */
	private static final long serialVersionUID = 3971381990842061210L;
	
	@ConditionContent(ordinal = 2)
	private Integer searchStatus;
	
	@ConditionContent(ordinal = 0)
	private String searchName;
	
	@ConditionContent(ordinal = 1)
	private String searchLoginName;
	
	@ConditionContent(ordinal = 3)
	private String searchLastLogonIp;
	
	@ConditionField(value = "lastLogonAt")
	@ConditionOpt(Opt.GE)
	@ConditionContent(value = "登录  从", ordinal = 4)
	private Date searchStartAt;
	
	@ConditionField(value = "lastLogonAt")
	@ConditionOpt(Opt.LE)
	@ConditionContent(value = "到", ordinal = 5)
	private Date searchEndAt;

	public Integer getSearchStatus() {
		return searchStatus;
	}

	public void setSearchStatus(Integer searchStatus) {
		this.searchStatus = searchStatus;
	}

	public String getSearchName() {
		return searchName;
	}

	public void setSearchName(String searchName) {
		this.searchName = searchName;
	}

	public String getSearchLoginName() {
		return searchLoginName;
	}

	public void setSearchLoginName(String searchLoginName) {
		this.searchLoginName = searchLoginName;
	}

	public String getSearchLastLogonIp() {
		return searchLastLogonIp;
	}

	public void setSearchLastLogonIp(String searchLastLogonIp) {
		this.searchLastLogonIp = searchLastLogonIp;
	}

	public Date getSearchStartAt() {
		return searchStartAt;
	}

	public void setSearchStartAt(Date searchStartAt) {
		this.searchStartAt = searchStartAt;
	}

	public Date getSearchEndAt() {
		return searchEndAt;
	}

	public void setSearchEndAt(Date searchEndAt) {
		this.searchEndAt = searchEndAt;
	}
}
